package com.wh.mapper;

import com.wh.pojo.UserTest;
import org.mybatis.spring.SqlSessionTemplate;

public class UserTestMapperImpl implements UserTestMapper {

    private SqlSessionTemplate sqlSession;

    public void setSqlSession(SqlSessionTemplate sqlSession){
        this.sqlSession=sqlSession;
    }

    public UserTest getUser(int id) {
        return sqlSession.getMapper(UserTestMapper.class).getUser(id);
    }
}
